package com.cloud.sms.dao;

import com.cloud.sms.model.SmsDefenseCore;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface SmsDefenseCoreMapper {
    int deleteByPrimaryKey(Integer smsDefenseCoreSeq);

    int insert(SmsDefenseCore record);

    int insertSelective(SmsDefenseCore record);
    
    Integer countIpLimit(@Param("ipaddress") String ipaddress, @Param("starttime") String starttime, @Param("endtime") String endtime);

    SmsDefenseCore selectByPrimaryKey(Integer smsDefenseCoreSeq);
    
    SmsDefenseCore selectByTelephoneNoLast(String telephoneNo);

    int updateByPrimaryKeySelective(SmsDefenseCore record);

    int updateByPrimaryKey(SmsDefenseCore record);
}